/*
 * File:   FakeModule.cpp
 * Author: pkv
 *
 * Created on July 24, 2011, 12:21 PM
 */

#include "core/Module.h"

#include <cstdlib>
#include <iostream>

using namespace std;

MODULE(FakeModule, FakeModuleReg, FakeModuleUnreg)

int testCounter = 0;

void *FakeModuleReg(void * param)
{
    cout << "(FakeModule registered)...";
    testCounter += 2;
    if (testCounter != 2) 
        exit(1);
    return (void *)testCounter;
}

void *FakeModuleUnreg(void * param)
{
    cout << "(FakeModule unregistered)...";
    testCounter += 4;
    if (testCounter != 6) 
        exit(1);
    return (void *)testCounter;
}


